<?php if (!defined('THINK_PATH')) exit();?>
<ul class="nav nav-tabs" id="myTab">
  <li class="active"> <a data-toggle="tab" href="#tab1"> <i class="green icon-home bigger-110"></i> 订单信息 </a> </li>
  <li class=""> <a data-toggle="tab" href="#tab2"> 商品列表  </a> </li>
   <li class=""> <a data-toggle="tab" href="#zhfu"> 支付记录  </a> </li>

</ul>
<div class="tab-content">
  <div id="tab1" class="tab-pane active">
    <div class="tab-content">
      <table class="table table-striped table-bordered " >
        <tbody>
          <tr>
            <th width="120"> 收件人 </th>
            <td><?php echo ($_data["name"]); ?>  </td>
         
          </tr>
          
           <tr>
            <th width="120"> 电话 </th>
            <td><?php echo ($_data["tel"]); ?> </td>
         
          </tr>
          
          
          
          <tr>
            <th width="120"> 地址 </th>
            <td><?php echo ($_data["address"]); ?></td>
         
          </tr>
        <tr>
            <th width="120"> 快递 </th>
            <td>
            
          
          <?php echo ($_data["kuaidi"]); ?>
            
            </td>
         
          </tr>
          

          <tr>
            <th width="120"> 购买日期 </th>
            <td><?php echo (date("Y-m-d H:i:s",$_data["inputtime"])); ?></td>
           
          </tr>
          
             <tr>
            <th width="120"> 总费用 </th>
            <td>￥<?php echo ($_data["price_sum"]); ?></td>
           
          </tr>
          
        
      
          
            <tr>
            <th width="120"> 备注 </th>
            <td><?php echo ($_data["content"]); ?></td>
         
          </tr>
          
          
          
         
        </tbody>
      </table>
    </div>
  </div>
  <div id="tab2" class="tab-pane">
   
   <table class="table table-striped table-bordered " >
        <tbody>
           <tr>
          <th >商品</th>
          <th >编号</th>
          <th >作者</th>
          <th >等级</th>
          <th >尺寸</th>
          <th>外框</th>
           <th>数量</th>
           <th>价格</th>

        </tr>
        
        <?php if(is_array($p_list)): $i = 0; $__LIST__ = $p_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                 <td><?php echo ($v["product_title"]); ?></td>
                 <td><?php echo ($v["p_id"]); ?></td>
                 <td><?php echo ($v["author"]); ?></td>
                 <td><?php echo ($v["dengji"]); ?></td>
                 <td><?php echo F("Var_chicun")[$v['chicun']]["name"];?></td>
                 <td><?php echo F("Var_waikuang")[$v['waikuang']]["name"];?></td>
           <td><?php echo ($v["num"]); ?></td>
                 <td><?php echo ($v["price"]); ?></td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
          
      
        </tbody>
      </table>
   
   
  </div> 
  
  <div id="zhfu" class="tab-pane">
   
<table class="table table-striped table-bordered " >
        <tbody>
         <tr>
            <th width="120"> 订单号 </th>
            <td><?php echo ($_data["order_sn"]); ?> </td>
         
          </tr>
           <tr>
          <td >支付方式</td>
          <td> 
             <?php switch($_data["pay_type"]): case "weixin": ?>微信支付<?php break;?>
                 <?php case "qianbao": ?>钱包支付<?php break; endswitch;?>
              </td>
        </tr>

         <tr>
             <td >优惠券</td>
             <td>
                 <?php echo ($yhj["title"]); ?>
             </td>
         </tr>


        <tr>
          <td >支付编号</td>
          <td> 
              <?php echo ($_data["payment_trade_no"]); ?>
              </td>
        </tr>
        <tr>
          <td >支付者账号</td>
          <td><?php echo ($_data["payment_buyer_email"]); ?></td>
        </tr>
        <tr>
          <td >支付时间</td>
          <td><?php echo ($_data["payment_notify_time"]); ?></td>
        </tr>
        <tr>
          <td >会员编号</td>
          <td><?php echo ($_data["uid"]); ?></td>
        </tr>
       
          
      
        </tbody>
      </table>
   
   
  </div>

  
</div>